﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PageEntity;

namespace IBLL
{
    /// <summary>
    /// 模块管理服务接口
    /// </summary>
    public interface IModuleServer
    {
        /// <summary>
        /// 获取左导航
        /// </summary>
        /// <returns></returns>
        List<ModuleDTO> LoadLeftMenu();
        /// <summary>
        /// 分页读取模块
        /// </summary>
        /// <param name="page"></param>
        /// <returns></returns>
        DataGridDTO LoadMoudleGridTree(long? parentid);
        /// <summary>
        /// 读取模块树
        /// </summary>
        /// <returns></returns>
        List<TreeNodeDTO> LoadModuleTree(long? parentid);
        /// <summary>
        /// 保存
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        ModuleDTO Save(ModuleDTO mode);
        /// <summary>
        /// 删除模块如有子模块一块删除
        /// </summary>
        /// <param name="mode"></param>
        /// <returns></returns>
        bool Delet(ModuleDTO mode);
    }
}
